<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>
            
                <h3>Cadastro de Aluno</h3>

                <div id="stylized" class="myform">

                    

                        <h:outputLabel>Nome: <span class="small">Max 70 caracteres</span></h:outputLabel>
                        <h:inputText value="#{AlunoController.aluno.nome}" id="nome" required="true" requiredMessage="Nome requerido">
                            <f:validateLength maximum="150" />
                        </h:inputText>
                        

                        <h:outputLabel>Identificador: <span class="small">Rg, RA, etc</span></h:outputLabel>
                        <h:inputText value="#{AlunoController.aluno.identificador}" id="identificador" >
                            <f:validateLength maximum="150" />
                        </h:inputText>
                        
                        
                        <h:commandButton styleClass="button" action="#{AlunoController.persiste}" value="Salvar" id="salvar" />
                        <h:commandButton styleClass="button" type="reset" value="Limpar" id="limpar" />


                    
                </div>
            
        </ui:composition>

    </body>
</html>
